package cn.sinjet.carassist;

import com.mgroup.wazehelper.R;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import cn.sinjet.viewmodel.PageDefine;
import cn.sinjet.viewmodel.ViewModel;

public class ContactUsActivity extends MyActivity implements OnClickListener{
	SinjetApplication app;
	Button btnBack;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
//		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
//				WindowManager.LayoutParams.FLAG_FULLSCREEN);//
		app = SinjetApplication.getInstance();
		LayoutInflater inflater = LayoutInflater.from(this);
		ViewGroup mViewRoot = (ViewGroup)inflater.inflate(R.layout.activity_contact_us,null);
		setContentView(mViewRoot);
//		app.addActivity(this);
		
		btnBack = (Button)mViewRoot.findViewById(R.id.about_back);
		btnBack.setOnClickListener(this);
	}
	
	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		//app.viewer.setCurActivity(this, false);
		super.onPause();
		//finish();
	}
	
	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
		//MainModel.getIns().setContext(this,ViewTag.PAGE_CONTACT_US);
		ViewModel.getIns().onActivityResume(this, PageDefine.PAGE_CONTACT_US, this);
	}
	@Override
	public void onClick(View view) {
		// TODO Auto-generated method stub
		switch(view.getId()){
		case R.id.about_back:
			finish();
			break;
		}
	}
	
	
	
}
